package com.igoal.dao;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.igoal.entity.UserInfo;

@Repository("userInfoDAO")
public class UserInfoDAOImpl extends GenericDaoHibernate<UserInfo, Long>
		implements UserInfoDAO {

	public UserInfoDAOImpl() {
		super(UserInfo.class);
	}

	public UserInfo saveInfo(UserInfo info) {
		HibernateTemplate template = getHibernateTemplate();
		template.saveOrUpdate(info);
		template.flush();
		return info;
	}

	@Override
	public UserInfo save(UserInfo info) {
		return this.saveInfo(info);
	}

}
